import sympy

def calc_params():
    x1 = sympy.Symbol("x1")
    y1 = sympy.Symbol("y1")
    x2 = sympy.Symbol("x2")
    y2 = sympy.Symbol("y2")

    A = sympy.Symbol("A")
    B = sympy.Symbol("B")
    C = sympy.Symbol("C")
    result = sympy.solve([A*x1 + B*y1 + C, A*x2 + B*y2 + C], [A, B, C])
    print(result)
def calc_intersection():
    A1 = sympy.Symbol("A1")
    B1 = sympy.Symbol("B1")
    C1 = sympy.Symbol("C1")
    A2 = sympy.Symbol("A2")
    B2 = sympy.Symbol("B2")
    C2 = sympy.Symbol("C2")

    x = sympy.Symbol("x")
    y = sympy.Symbol("y")

    result = sympy.solve([A1*x + B1*y + C1, A2*x + B2*y + C2], [x, y])
    print(result)


if __name__ == '__main__':
    calc_params()
    calc_intersection()